package com.stark.lock.annotation;

import java.lang.annotation.*;

/**
 * 分布式锁
 *
 * @author <a href="mailto:mengbin@hotmail.com">Ben</a>
 * @version 1.0.0
 * @since 1.0.0
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface DistributedLock {

    /**
     * 锁标识
     */
    String key() default "";

    /**
     * 占锁超时时间，单位毫秒
     */
    long timeout() default 0;

}
